package enumdemo;

// 法师，射手，刺客
enum Job{
	MASTER(1000,100,200),SHOOTER(10,1000,200),ASSASSIN(500,500,100);
	private int magic;   //魔法
	private int power;   //攻击
	private int defense; //防御
	
	private Job(int magic, int power, int defense) {
		this.magic = magic;
		this.power = power;
		this.defense = defense;
	}
	public int getMagic() {
		return magic;
	}
	public void setMagic(int magic) {
		this.magic = magic;
	}
	public int getPower() {
		return power;
	}
	public void setPower(int power) {
		this.power = power;
	}
	public int getDefense() {
		return defense;
	}
	public void setDefense(int defense) {
		this.defense = defense;
	}
}

public class Player {
	private String name;
	private int level;
	private Job job;
	
	public Player() {
		super();
	}
	public Player(String name, int level, Job job) {
		super();
		this.name = name;
		this.level = level;
		this.job = job;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getLevel() {
		return level;
	}
	public void setLevel(int level) {
		this.level = level;
	}
	public Job getJob() {
		return job;
	}
	public void setJob(Job job) {
		this.job = job;
	}
}






